import { verifyAccessToken } from '~/utils/jwt-utils';
import { sleep, unAuthorizedResponse, useResponseSuccess } from '~/utils/response';

export default eventHandler(async (event) => {
    const userinfo = verifyAccessToken(event);
    if (!userinfo) {
        return unAuthorizedResponse(event);
    }
    await sleep(1000);
    return useResponseSuccess(null);
});
